package homework0306;

import java.io.File;
import java.util.Scanner;

public class Text04 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入您要删除目录");
        String s=scan.nextLine();
        File file=new File(s);
        if (file.exists()){
            file.delete();
            System.out.println("删除成功");
        }else {
            System.out.println("你输入的目录不存在");
        }



    }
}
